package com.xiaoc.bulldozer.common.model;

import java.io.Serializable;

import com.xiaoc.bulldozer.common.Constant;

/**
 * 微信用户表
 *
 * @author Danfo Yam
 * @date 2018-08-24 15:47:58
 */
public class WeixinUser implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final Integer TYPE_USER = 1;

    public static final Integer TYPE_REGISTER = 2;

    public static final Integer TYPE_MANAGER = 3;

    public static final Integer TYPE_SHARE_TALENT = 100;
    /**
     * 自增ID
     */
    private Integer id;

    /**
     * 微信用户ID
     */
    private String openId;

    /**
     * union ID
     */
    private String unionId;

    /**
     * 微信用户昵称
     */
    private String nickName;

    /**
     * 性别
     */
    private String gender;

    /**
     * 市
     */
    private String city;

    /**
     * 省
     */
    private String province;

    /**
     * 国家
     */
    private String country;

    /**
     * 头像
     */
    private String avatarUrl;

    /**
     * 微信定位城市
     */
    private String locationCity;

    /**
     * 微信定位地址
     */
    private String locationAddress;

    /**
     * 用户类型 1为普通用户, 2为分销商, 3为代理商, 3为平台
     */
    private Integer userType;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改时间
     */
    private Long updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getLocationCity() {
        return locationCity;
    }

    public void setLocationCity(String locationCity) {
        this.locationCity = locationCity;
    }

    public String getLocationAddress() {
        return locationAddress;
    }

    public void setLocationAddress(String locationAddress) {
        this.locationAddress = locationAddress;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public boolean isEnable() {
        return this.status != null && this.status == Constant.ENABLE;
    }

}
